package com.cheng.spider.util;

import org.apache.http.HttpResponse;
import org.apache.http.client.methods.HttpRequestBase;

public class TrasactionPrinter {

    public static void printDetail(HttpRequestBase request, HttpResponse response) {
        new RequestPrinter(request).printRequest();
        System.out.println();
        System.out.println("---------------------------------------------------------------------------");
        System.out.println();
        new ResponsePrinter(response).printResponse();
    }

    public static void printDetailNoBody(HttpRequestBase request, HttpResponse response) {
        new RequestPrinter(request).printRequest();
        System.out.println();
        System.out.println("---------------------------------------------------------------------------");
        System.out.println();
        new ResponsePrinter(response).printResponseNoBody();
    }
}
